package com.example.forum_system.utils;

import java.util.UUID;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Li_Xiaochi
 * Date: 2025/4/26
 * Time: 16:41
 */
public class UUIDUtil {
    /**
     * 生成一个 36 位标准的 UUID
     * @return
     */
    public static String UUID_36() {
        return UUID.randomUUID().toString();
    }

    /**
     * 生成一个 32 位的 UUID
     * @return
     */
    public static String UUID_32() {
        return UUID.randomUUID().toString().replace("-", "");
    }
}
